import os,time,install
from pyaria2 import Jsonrpc
def get():
    if os.path.exists("WPM-ghpack-main.zip"):
        os.remove("WPM-ghpack-main.zip")
    jsonrpc = Jsonrpc("127.0.0.1",6800)
    jsonrpc.addUris("https://ghproxy.com/https://github.com/shenziqian/WPM-ghpack/archive/refs/heads/main.zip")
    time.sleep(30)
    install.ex("WPM-ghpack-main")
    os.remove("WPM-ghpack-main.zip")
    os.chdir("WPM-ghpack-main")
